//
//  DestImpressionsCollectionViewCell.m
//  TravelEveryDay
//
//  Created by dlios on 15/10/21.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "DestImpressionsCollectionViewCell.h"
#import "UIImageView+WebCache.h"
#import "BaseHeader.h"
@implementation DestImpressionsCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _destImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        [self.contentView addSubview:_destImageView];

    }
    return self;
}

-(void)setImageViewImage:(NSString *)url
                   Width:(CGFloat )width{

    _destImageView.frame = CGRectMake(0, 0, width, 150 *HEIGHT);
    [_destImageView sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:PLACEHOLDERIMAGE];
}


@end
